
var config = require("../config/notification.json");
var restify = require('restify');


// "http://localhost:8080/dev/invoke?adapter=FTPushAdapter&procedure=submitNotification&parameters=[$customerId,$message]"
function notification(userId, message, callback) {
	this.host = config.host + ':' + config.port;
	this.path = config.path + '?adapter=' + config.adapter + '&procedure='
			+ config.procedure + '&parameters=[' + userId + ',' + message + ']';
	this.client = restify.createStringClient({
		url : this.host
	});
	this.client.get(this.path, callback);
}

exports.notification = notification;